//#define __DEBUG__
// by Xeno
#define THIS_FILE "fn_sidempkilled.sqf"
#include "x_setup.sqf"

private ["_vec", "_killer", "_dbm"];
PARAMS_2(_vec,_killer,_dbm);

__addDead(_vec);
if (GVAR(domdatabase) && {isPlayer _killer}) then {
	switch (_dbm) do {
		case 1: {_killer call FUNC(PAddPlaneKillPoints)};
		case 2: {_killer call FUNC(PAddTankKillPoints)};
	};
};

_vec removeAllMPEventHandlers "MPKilled";
